<aside class="left-sidebar">
    <!-- Sidebar scroll-->
    <div class="scroll-sidebar">
        <!-- Sidebar navigation-->
        <nav class="sidebar-nav">
            <ul id="sidebarnav">
                @can('admin.dashboard')
                <li> <a class="" target="main-body" href="{{ route('admin.dashboard') }}" aria-expanded="false"><i class="mdi mdi-gauge"></i><span class="hide-menu">首页</span></a>
                </li>
                @endcan
                @can('admin.managers')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="fas fa-users"></i><span class="hide-menu">管理员管理</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.managers.index')
                        <li><a target="main-body" href="{{ route('admin.managers.index') }}">管理员列表</a></li>
                        @endcan
                    </ul>
                </li>
                @endcan
                @can('admin.brokers')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="fas fa-users"></i><span class="hide-menu">经销商管理</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.brokers.index')
                        <li><a target="main-body" href="{{ route('admin.brokers.index') }}">经销商列表</a></li>
                        @endcan
                    </ul>
                </li>
                @endcan
                @can('admin.merchants')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="fas fa-users"></i><span class="hide-menu">商户管理</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.merchants.index')
                        <li><a target="main-body" href="{{ route('admin.merchants.index') }}">商户列表</a></li>
                        @endcan
                        @can('admin.merchants.jdList')
                        <li><a target="main-body" href="{{ route('admin.merchants.jdList') }}">报单列表</a></li>
                        @endcan
                        @can('admin.merchants.images')
                        <li><a target="main-body" href="{{ route('admin.images.index') }}">图片审核</a></li>
                        @endcan
                    </ul>
                </li>
                @endcan
                @can('admin.operators')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="fas fa-users"></i><span class="hide-menu">运维管理</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.operators.index')
                        <li><a target="main-body" href="{{ route('admin.operators.index') }}">运维列表</a></li>
                        @endcan
                    </ul>
                </li>
                @endcan
                @can('admin.machines')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="mdi mdi-washing-machine"></i><span class="hide-menu">设备管理</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.machines.index')
                        <li><a target="main-body" href="{{ route('admin.machines.index') }}">设备列表</a></li>
                        @endcan
                        @can('admin.mainborads.index')
                        <li><a target="main-body" href="{{ route('admin.mainborads.index') }}">主板类型</a></li>
                        @endcan
                        @can('admin.freightWayDemos.index')
                        <li><a target="main-body" href="{{ route('admin.freightWayDemos.index') }}">货道模板</a></li>
                        @endcan
                    </ul>
                </li>
                @endcan
                @can('admin.goods')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="mdi mdi-shopping"></i><span class="hide-menu">商品管理</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.goodstype.index')
                        <li><a target="main-body" href="{{ route('admin.goodstype.index') }}">分类列表</a></li>
                        @endcan
                        @can('admin.goods.index')
                        <li><a target="main-body" href="{{ route('admin.goods.index') }}">我的商品库</a></li>
                        @endcan
                        <li><a target="main-body" href="{{ route('admin.cloudimage.index') }}">云商品图库</a></li>
                    </ul>
                </li>
                @endcan
                @can('admin.orders')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="ti-money"></i><span class="hide-menu">订单管理</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.order.index')
                        <li><a target="main-body" href="{{ route('admin.order.index') }}">订单列表</a></li>
                        @endcan
                        {{-- @can('admin.refund.index')
                        <li><a target="main-body" href="{{ route('admin.refund.index') }}">退款记录</a></li>
                        @endcan --}}
                        {{-- <li><a target="main-body" href="app-chat.html">分账记录</a></li> --}}
                    </ul>
                </li>
                @endcan
                @can('admin.user')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="fas fa-users"></i><span class="hide-menu">用户管理</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.user.index')
                        <li><a target="main-body" href="{{ route('admin.payuser.index') }}">用户列表</a></li>
                        @endcan
                    </ul>
                </li>
                @endcan
                @can('admin.adverimage')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="mdi mdi-radio"></i><span class="hide-menu">广告管理</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.adverimage.index')
                        <li><a target="main-body" href="{{ route('admin.adverimage.index') }}">广告列表</a></li>
                        @endcan
                        <li><a target="main-body" href="app-chat.html">广告平台</a></li>
                    </ul>
                </li>
                @endcan
                @can('admin.permissions')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="mdi mdi-account-key"></i><span class="hide-menu">权限管理</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.roles.index')
                        <li><a target="main-body" href="{{ route('admin.roles.index') }}">角色管理</a></li>
                        @endcan
                        @can('admin.permissions.index')
                        <li><a target="main-body" href="{{ route('admin.permissions.index') }}">权限管理</a></li>
                        @endcan
                    </ul>
                </li>
                @endcan
                @can('admin.notices')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="mdi mdi-settings"></i><span class="hide-menu">公告管理</span></a>
                    <ul aria-expanded="false" class="collapse">                        
                        @can('admin.notices.index')
                        <li><a target="main-body" href="{{ route('admin.notices.index') }}">公告列表</a></li>
                        @endcan
                    </ul>
                </li>
                @endcan
                @can('admin.config')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="mdi mdi-settings"></i><span class="hide-menu">系统设置</span></a>
                    <ul aria-expanded="false" class="collapse">                        
                        @can('admin.config.siteconfig')
                        <li><a target="main-body" href="{{ route('admin.config.siteconfig') }}">平台设置</a></li>
                        @endcan
                        @can('admin.config.information')
                        <li><a target="main-body" href="{{ route('admin.config.information') }}">基本配置</a></li>
                        @endcan
                        @can('admin.config.baidu')
                        <li><a target="main-body" href="{{ route('admin.config.baidu') }}">百度推广</a></li>
                        @endcan
                    </ul>
                </li>
                @endcan
                @can('admin.statistics')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="mdi mdi-library-books"></i><span class="hide-menu">数据统计</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.statistics.outGoods')
                        <li><a target="main-body" href="{{ route('admin.statistics.outGoods') }}">缺货商品</a></li>
                        @endcan
                    </ul>
                </li>
                @endcan
                {{-- @can('admin.financing') --}}
                {{-- <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="mdi mdi-library-books"></i><span class="hide-menu">财务统计</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.statistics.outGoods')
                        <li><a target="main-body" href="{{ route('admin.financing.index') }}">费率统计</a></li>
                        @endcan
                    </ul>
                </li> --}}
                {{-- @endcan                 --}}
                @can('admin.shipment')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="mdi mdi-library-books"></i><span class="hide-menu">日志管理</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.operations.index')
                        <li><a target="main-body" href="{{ route('admin.operatorLog.index') }}">操作日志</a></li>
                        @endcan
                    </ul>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.mqttlog.index')
                        <li><a target="main-body" href="{{ route('admin.mqttLogs.index') }}">设备日志</a></li>
                        @endcan
                    </ul>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.orderslog.index')
                        <li><a target="main-body" href="{{ route('admin.orderslog.index') }}">订单日志</a></li>
                        @endcan
                    </ul>
                </li>
                @endcan
                @can('admin.cloudimage')              
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="mdi mdi-washing-machine"></i><span class="hide-menu">云图管理</span></a>
                    <ul aria-expanded="false" class="collapse">
                        @can('admin.cloudimage.created')
                        <li><a target="main-body" href="{{ route('admin.cloudimage.created') }}">云图片图</a></li>
                        @endcan
                        <!-- <li><a target="main-body" href="{{ route('admin.cloudimagetype.created') }}">云图库分类</a></li> -->
                    </ul>
                </li>
                @endcan
                @can('admin.test')
                <li> <a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="mdi mdi-library-books"></i><span class="hide-menu">测试</span></a>
                    <ul aria-expanded="false" class="collapse">
                        <li><a target="main-body" href="{{ route('admin.test') }}">测试</a></li>
                    </ul>
                </li>
                @endcan
            </ul>
        </nav>
        <!-- End Sidebar navigation -->
    </div>
    <!-- End Sidebar scroll-->
</aside>